<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('vips', function (Blueprint $table) {
            $table->id();
            $table->string('package')->nullable()->comment('VIP套餐类型');
            $table->string('package_name')->comment('套餐显示名称');
            $table->unsignedInteger('duration')->comment('会员期限数值天');
            $table->tinyInteger('status')->default(0)->comment('状态 0未上架 1 已上架');
            $table->decimal('price')->comment('套餐价格');
            $table->decimal('original_price');
            $table->text('remarks')->nullable()->comment('备注');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('vips');
    }
};
